package service.imp;

import java.util.List;

import dao.imp.CustomerDaoImp;
import pojo.Customer;
import service.CustomerManager;

public class CustomerManagerImp implements CustomerManager {

	@Override
	public int addCustomer(Customer customer) {
		int m = new CustomerDaoImp().addCustomer(customer);
		return m;
	}

	@Override
	public int deleteCusTomer(int id) {
		int m = new CustomerDaoImp().deleteCusTomer(id);
		return m;
	}

	@Override
	public int updateCustomer(Customer customer) {
		int m = new CustomerDaoImp().updateCustomer(customer);
		return m;
	}

	@Override
	public Customer findOneCustomer(String name) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Customer findOneCustomer(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Customer> fiandAllCustomer() {
		List<Customer> list = new CustomerDaoImp().fiandAllCustomer();
		return list;
	}

}
